package com.movie.api.service.impl;

import com.movie.api.mapper.AliPayMapper;
import com.movie.api.model.entity.OrderVIP;
import com.movie.api.service.AliPayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class AliPayServiceImpl implements AliPayService {
    @Resource
    private AliPayMapper aliPayMapper;

    @Override
    public void save(OrderVIP orderVIP) {
        log.info("进入save函数");
        int insert = aliPayMapper.insert(orderVIP);
        log.info("insert结果值：{}", insert);
    }

    @Override
    public OrderVIP getById(String id) {
        return aliPayMapper.getByUserId(id);
    }
}
